#coding:utf-8
import time

import tools
import sys
# Python解释器的版本号是3.11.4
__MAJOR,__MINOR,__MICOR=sys.version_info[0],sys.version_info[1],sys.version_info[2]
print(__MAJOR,__MINOR,__MICOR)
if __MAJOR<3:
    print(f'Python的版本号过低，当前的版本号:{__MAJOR}.{__MINOR}.{__MICOR}')
    time.sleep(2)
    exit()

# 显示超级画板的主窗口
if __name__ == '__main__':
    paint=tools.Paint() # 创建对象
    #try:
        # 对象名.方法名
    paint.run() # 启动主窗口
    #except Exception as e:
        #print(e)
